URL = "http://sourceforge.net/projects/qwt/files/qwt/%(VERSION)s/qwt-%(VERSION)s.tar.bz2"

DEFAULT_VERSION = "6.0.1"
VERSIONS = ["6.0.1"]
DEPENDS = ["qt4osmin"]

import os, shutil
from source.builders import QMakeBuilder
from source.machine import Tools

class QwtBuilder( QMakeBuilder ):

  def configureparameters(self):
    return ["CONFIG+=dll",
            "CONFIG+=debug", 
            "DEFINES+=QWT_MAKEDLL"]

  def configure(self):
    os.environ['QWT_INSTALL_PREFIX'] = self.targetpath()
    QMakeBuilder.configure(self)

  def install(self):

    # Note: for Linux builds the installation directory is hardcoded to /usr/local
    # To change this, hand edit qwtconfig.pri, remove hard codes to QWT_INSTALL_PREFIX
    # and set to $$(QWT_INSTALL_PREFIX)
    QMakeBuilder.install(self)


BUILDER = QwtBuilder

